// 医院管理系统通用样式

// 重置样式
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html, body {
  height: 100%;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
}

// 布局相关
.layout-container {
  display: flex;
  height: 100vh;

  .sidebar {
    width: 200px;
    background: #001529;
    transition: width 0.2s;

    &.collapsed {
      width: 64px;
    }
  }

  .main-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    overflow: hidden;

    .header {
      height: 60px;
      background: #fff;
      border-bottom: 1px solid #f0f0f0;
      display: flex;
      align-items: center;
      justify-content: space-between;
      padding: 0 24px;
    }

    .content {
      flex: 1;
      padding: 24px;
      background: #f5f5f5;
      overflow-y: auto;
    }
  }
}

// 通用类
.text-center {
  text-align: center;
}

.text-right {
  text-align: right;
}

.mb-16 {
  margin-bottom: 16px;
}

.mb-24 {
  margin-bottom: 24px;
}

.card {
  background: #fff;
  border-radius: 8px;
  padding: 24px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

// 响应式
@media (max-width: 768px) {
  .layout-container {
    .sidebar {
      position: fixed;
      left: -200px;
      z-index: 1000;
      
      &.mobile-show {
        left: 0;
      }
    }

    .main-content {
      width: 100%;
    }
  }
}